﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Web.Mvc;
using HROReporting.Controllers.ActionArguments;
using HROReporting.Infrastructure.Authentication;
using HROReporting.Services.Interfaces;

namespace HROReporting.Controllers.Controllers
{
    public abstract class BaseAccountController : Controller
    {
        protected readonly ILocalAuthenticationService _authenticationService;
        protected readonly IStudentService _studentService;
        protected readonly IFormsAuthentication _formsAuthentication;
        protected readonly IActionArguments _actionArguments;

        public BaseAccountController(ILocalAuthenticationService authenticationService,
                                     IStudentService studentService,
                                     IFormsAuthentication formsAuthentication,
                                     IActionArguments actionArguments)
        {
            _authenticationService = authenticationService;
            _studentService = studentService;
            _formsAuthentication = formsAuthentication;
            _actionArguments = actionArguments;
        }

        public ActionResult RedirectBasedOn(string returnUrl)
        {
            // returnUrl???
            return RedirectToAction("Index", "Home");
        }

        public ActionArgumentKey GetReturnActionFrom(string returnUrl)
        {
            // returnUrl???
            return ActionArgumentKey.GoToAccount;
        }
    }
}
